@layout("/common/_container.html"){
<style>
    html{
        width:100%;
        overflow-x:hidden;
    }
    .addPatient{
        font-size: 14px;
        height: 100%;
        background: #F9F9F9;
    }
    .addPatient > .addPatientContent > div{
        margin-bottom: 0.5em;
    }
    .addPatientHeader{
        height: 3.5em;
        line-height: 3.5em;
        position: fixed;
        background: white;
        width: 100%;
        z-index: 1;
        border-bottom: 1px solid #E5E5E5;
        padding: 0 1em;
        display: flex;
    }
    .addPatientHeader > div{
        flex: 1;
        color: #00a6c9;
    }
    .addPatientHeader > div:nth-child(2){
        color: black;
        text-align: center;
        font-size: 18px;
    }
    .addPatientContent{
        padding-top: 3.7em;
        height: 100%;
        overflow: auto;
    }
    .addPatientContent > div > div{
        position: relative;
    }
    .addPatientContent::-webkit-scrollbar{
        width: 3px;
    }



    .addPatientInformation > div,
    .addPatientNumber > div,
    .addPatientType > div,
    .addPatientPersonal > div,
    .addPatientAddress > div,
    .addPatientCommunication > div{
        border-bottom: 1px solid #E5E5E5;
        background: white;
        display: flex;
        padding: 0.8em;
    }
    .addPatientInformation > div input,
    .addPatientType > div input,
    .addPatientPersonal > div input,
    .addPatientAddress > div input,
    .addPatientCommunication > div input{
        width: 100%;
        text-align: right;
        border: none;
        outline: none;
    }

    .addPatientType > div > div > span,
    .addPatientPersonal > div > div > span,
    .addPatientAddress > div > div > span{
        position: absolute;
        right: 0.8em;
        top: 50%;
        transform: translateY(-50%);
    }
    .addPatientType > div > div > input,
    .addPatientPersonal > div > div > input,
    .addPatientAddress > div > div > input{
        padding-right: 1.5em;
    }


    .addPatientNumber > div input{
        padding-left: 0.8em;
        border: none;
        outline: none;
        width: 70%;
    }
    .addPatientNumber > div > div:last-of-type{
        flex: 1;
        border-left: 1px solid #dddddd;
        text-align: right;
    }
    #benren>span,#jia>span{
        font-size: 12px;
        margin-left: 0.3em;
    }
</style>
<div class="addPatient">
    <!--头部-->
    <div class="addPatientHeader">
        <div onclick="patient()">取消</div>
        <div>新建患者</div>
        <div style="text-align: right">保存</div>
    </div>
    <!--内容-->
    <div class="addPatientContent">
        <!--姓名-->
        <div class="addPatientInformation">
            <div>
                <div style="flex: 1;">姓名 <span>*</span></div>
                <div style="flex: 7"><input type="text" placeholder="请填写姓名"></div>
            </div>
            <div>
                <div style="flex: 1;">备注</div>
                <div style="flex: 7"><input type="text" placeholder="请填写备注"></div>
            </div>
        </div>
        <!--号码-->
        <div class="addPatientNumber">
            <div>
                <div style="flex: 5;">
                    <span>号码</span>
                    <input type="text" placeholder="请添加手机" >
                </div>
                <div>
                    <div id="benren">本人<span class="glyphicon glyphicon-triangle-bottom"></span></div>
                </div>
            </div>
            <div>
                <div style="flex: 5;">
                    <span>号码</span>
                    <input type="text" placeholder="请添加手机" >
                </div>
                <div>
                    <div id="jia">家<span class="glyphicon glyphicon-triangle-bottom"></span></div>
                </div>
            </div>
            <div>
                <div style="text-align: center;border: none;color: #00a6c9">添加号码</div>
            </div>
        </div>
        <!--病历号-->
        <div class="addPatientType">
            <div>
                <div style="flex: 1">类型</div>
                <div style="flex: 7;text-align: right;">
                    <span id="putong" style="margin-right: 1.5em;">普通</span>
                    <span class="glyphicon glyphicon-menu-right"></span>
                </div>
            </div>
            <div>
                <div style="flex: 1">病历号</div>
                <div style="flex: 6">
                    <input type="text" placeholder="病历号" style="padding-right: 0.5em;">
                </div>
            </div>
        </div>
        <!--个人信息-->
        <div class="addPatientPersonal">
            <div>
                <div style="flex: 1">年龄</div>
                <div style="flex: 7">
                    <input type="text" value="0" style="padding-right: 0.5em;">
                </div>
            </div>
            <div>
                <div style="flex: 1">生日</div>
                <div style="flex: 7">
                    <input type="text" placeholder="请选择出生年月日">
                    <span class="glyphicon glyphicon-menu-right"></span>
                </div>
            </div>
            <div>
                <div style="flex: 1">性别</div>
                <div style="flex: 7;text-align: right">
                    <span style="margin-right: 1.5em;" id="sex">未知</span>
                    <span class="glyphicon glyphicon-menu-right"></span>
                </div>
            </div>
            <div>
                <div style="flex: 1">来源</div>
                <div style="flex: 7">
                    <input type="text" placeholder="请选择患者来源">
                    <span class="glyphicon glyphicon-menu-right"></span>
                </div>
            </div>
        </div>
        <!--地址-->
        <div class="addPatientAddress">
            <div>
                <div style="flex: 1">所在地区</div>
                <div style="flex: 4">
                    <input type="text" placeholder="请选择地区">
                    <span class="glyphicon glyphicon-menu-right"></span>
                </div>
            </div>
            <div>
                <div style="flex: 1">详细住址</div>
                <div style="flex: 4">
                    <input type="text" placeholder="请填写详细地址">
                    <span class="glyphicon glyphicon-menu-right"></span>
                </div>
            </div>
        </div>
        <!--身份证其他-->
        <div class="addPatientCommunication">
            <div>
                <div style="flex: 1">QQ</div>
                <div style="flex: 7"><input type="text" placeholder="请填写QQ"></div>
            </div>
            <div>
                <div style="flex: 1">邮箱</div>
                <div style="flex: 7"><input type="text" placeholder="请填写邮箱"></div>
            </div>
            <div>
                <div style="flex: 1">身份证号</div>
                <div style="flex: 4"><input type="text" placeholder="请添加身份证"></div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/mobileSelect/js/mobileSelect.js"></script>
<link href="${ctxPath}/static/mobileSelect/css/mobileSelect.css" rel="stylesheet">
<script>
    var mobileSelect1 = new MobileSelect({
        trigger: '#benren',
        title: '请选择关系',
        wheels: [
            {data:['家','办公室','本人','其他']}
        ],
        position:[2] //初始化定位
    });

    var mobileSelect2 = new MobileSelect({
        trigger: '#jia',
        title: '请选择关系',
        wheels: [
            {data:['家','办公室','本人','其他']}
        ],
        position:[2] //初始化定位
    });

    var mobileSelect3 = new MobileSelect({
        trigger: '#putong',
        title: '请选择类型',
        wheels: [
            {data:['普通','临时']}
        ],
        position:[2] //初始化定位
    });

    var mobileSelect4 = new MobileSelect({
        trigger: '#sex',
        title: '请选择类型',
        wheels: [
            {data:['未知','男','女']}
        ],
        position:[2] //初始化定位
    });


    function patient() {  //跳转到患者
        window.location.href = Feng.ctxPath + "/doctorLooked/doctor_patient";
    }
</script>
@}
